﻿namespace Web.Control.Member.My.Profile
{
    using System;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    using System.Text.RegularExpressions;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;
    using System.Collections;
    using System.IO;

    using BLF.WWW_User.Users;
    using Model.WWW_User.User;
using Model.WWW_User.Teach;
using System.Collections.Generic;

    public class Language : BaseControl
    {
        /// <summary>
        /// 学生语言相关信息
        /// </summary>
        protected UserLanguageBuddySet ULB;

        protected override void OnLoad(EventArgs e)
        {
            if (HttpContext.Current.User.Identity.Name == "")
            {
                Page.Response.Redirect("/user/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
            }
            ArrayList arrList = User.GetLanProf(HttpContext.Current.User.Identity.Name);
            if (arrList != null && arrList.Count > 0)
            {

                ULB = arrList[0] as UserLanguageBuddySet;                
            }
            else
            {
                Response.End();
                return;
            }

             
             base.OnLoad(e);
        }
    }
}
